import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './tests',
  snapshotDir: './debug_logs/snapshots',
  outputDir: './debug_logs/artifacts',
  timeout: 120_000,
  retries: 0,
  use: {
    headless: false,
    trace: 'on',
    video: 'on',
    screenshot: 'on',
    baseURL: 'https://bbs.huaweicloud.com',
  },
  projects: [
    {
      name: 'Chromium',
      use: { ...devices['Desktop Chrome'] },
    },
  ],
  webServer: {
    command: 'python3 -m http.server 8000',
    url: 'http://localhost:8000/test.html',
    reuseExistingServer: true,
  },
});